package com.hunliji.monitor.share.component.db.model;

import lombok.Data;

/**
 * sql 检查结果
 * @author wuchen
 */
@Data
public class SqlCheckResult {
    /**
     * 检查结果
     */
    private Integer checkCode;
    /**
     * 检查信息
     */
    private String checkMsg;

    public static SqlCheckResult build(Integer checkCode,String checkMsg){
        SqlCheckResult sqlCheckResult = new SqlCheckResult();
        sqlCheckResult.setCheckCode(checkCode);
        sqlCheckResult.setCheckMsg(checkMsg);
        return sqlCheckResult;
    }
}
